package com.cdx.springcloud.controller;

import com.cdx.springcloud.service.IMessageProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author chedx
 * @data 2020/12/15 9:53 PM
 */
@RestController
public class MessageController {
    @Resource
    private IMessageProvider provider;

    @GetMapping(value = "/send")
    public String send() {
        return provider.send();
    }
}
